package cate.game.role.show.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBBlog;
import cate.game.role.Role;
import easy.java.dev.note.NoteField;


@ClientMsg(title = "修改地区的 の 返回")
public class ModifyAreaResp implements MsgOutput {


    @NoteField("省")
    public int province;

    @NoteField("市")
    public int city;

    public ModifyAreaResp() {
    }

    public ModifyAreaResp(Role role) {
        this.province = role.getBase().province;
        this.city = role.getBase().city;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBlog.MODIFY_AREA_RESP;
    }
}
